package com.lyubia.shop.manager.controller;

import com.lyubia.shop.manager.pojo.Admin;
import com.lyubia.shop.manager.service.AdminService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Controller
@RequestMapping("/admin")
public class AdminController {

    @Resource
    private AdminService adminService;

//    @GetMapping("/{id}")
//    @ResponseBody
//    public Admin list(@PathVariable Short id) {
//        return adminService.selectByPrimaryKey(id);
//    }

}
